
    <div class="row vertical-offset-100" ng-controller="LoginController as loginctrl">
        <div class="col-md-4 col-md-offset-4">
            <div class="panel panel-default" id="loginbox">
                <div class="panel-heading">
                    <h3 class="panel-title">账号登录</h3>
                </div>
                <div class="panel-body">
                    <form accept-charset="UTF-8" role="form" ng-submit="loginctrl.login()" name="form" id="loginform">
                        <fieldset ng-disabled="isSubmitted">
                            <div class="form-group" ng-class="{ 'has-error': form.username.$dirty && (form.username.$error.required || form.username.$error.username) }">
                                <label for="username">用户名</label>
                                <input type="text" name="username" id="username" class="form-control"  required />
                                <span ng-show="form.email.$dirty && form.email.$error.required" class="help-block">请填写用户名</span>
                                <!--<span ng-show="form.username.$dirty && form.username.$error.username" class="help-block">Email is invalid</span>-->
                            </div>
                            <div class="form-group" ng-class="{ 'has-error': form.password.$dirty && (form.password.$error.required || form.password.$error.password) }">
                                <input class="form-control" placeholder="密码" name="password" type="password"  required>
                                <span ng-show="form.password.$dirty && form.password.$error.required" class="help-block">请填密码</span>
                            </div>
                           <!-- <div class="form-group">
                                <input class="form-control" placeholder="请输入验证码" name="validateCode" type="text" value="">
                                <img src="/validatecode/image" align="middle" alt="验证码" ng-click="loginctrl.refareshCode()" ng-mouseover="loginctrl.mouseover()" title="看不清，请点我"   />
                            </div>-->
                            <div class="form-group">
                                <div class="checkbox">
                                    <label>
                                        <input name="remember" type="checkbox" value="记住我"> 记住我
                                    </label>
                                </div>
                            </div>
                            <span style="color: red">{{loginctrl.error}}</span>
                            <input class="btn btn-lg btn-success btn-block"  type="submit" value="登录"/>
                            <div class="form-group">
                                <div class="col-md-12 control">
                                    <div style="border-top: 1px solid#888; padding-top:15px; font-size:85%" >
                                        还没有账号？
                                        <a href="#!/register" >
                                            点这里注册
                                        </a>
                                    </div>
                                </div>
                            </div>
                        </fieldset>
                    </form>
                </div>
            </div>
        </div>
    </div>
